package com.zs.demo;

import com.zs.spring.AppConfig;
import com.zs.spring.ZcApplicationContext;

public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        //启动spring
        ZcApplicationContext zcApplicationContext = new ZcApplicationContext(AppConfig.class);
        Object bean = zcApplicationContext.getBean("userService");
        System.out.println(bean.toString());

    }
}
